[PoC] Automated regression testing of manual XCP-ng installation - #643
Draft
vxgmichel wants to merge 2 commits into
Draft
[PoC] Automated regression testing of manual XCP-ng installation#643vxgmichel wants to merge 2 commits into
vxgmichel wants to merge 2 commits into
Conversation
vxgmichel
force-pushed
the
vml/auto-install-with-tui-poc-2
branch
3 times, most recently
from
July 29, 2026 21:14
8622528 to
ea9bf9f
Compare
Signed-off-by: Vincent Michel <vincent.michel@vates.tech>
Signed-off-by: Vincent Michel <vincent.michel@vates.tech>
vxgmichel
force-pushed
the
vml/auto-install-with-tui-poc-2
branch
from
July 30, 2026 16:51
ea9bf9f to
0cc574a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The automated installation tests rely on creating an answerfile with the proper configuration, and remastering the chosen install ISO in order to use that answerfile by default. This is convenient to create all kinds of different configuration, but it does not test the manuel install process since the TUI is completely avoided.
This proof of concept shows that a manual installation can also be automated in order to test for potential regression in the TUI. More specifically, this PR introduces a couple of tests, following the dependency convention introduced in
tests/install/test.py:The interesting part is the
test_install_with_tuitest. Here's what it does:tests/isntall/test.py. One notable difference is that it setsplatform:hvm_serialtoptyxl console -t serial $domain_idpty. This allows proper control of the interactive sessions. The test logs the installation message, and then navigate through the dialogs, mostly using the default options.test_tune_firstboottest.Note that the nested hosts produced by
test_boot_instcan run thepostinstalltest job: